#!/usr/bin/env python
# Create: 2019/1/17
__author__ = '749B'

COURSE = "Python编程入门"
PRICE = 598  # RMB

p1 = {'name': "第1讲 Python基础课程（上）", 'url_info': [
    ("1.1 Python介绍（一）", "https://media.wanmen.org/96b77bed-bc8e-4494-ab9a-a84663cd0aa1_pc_mid"),
    ("1.2 Python介绍（二）", "https://media.wanmen.org/d8b949f6-596a-41b8-8c59-ca3b3cd99cd8_pc_mid"),
    ("1.3 变量—命名规范", "https://media.wanmen.org/2fee11b8-db66-4898-8da8-8eb142420442_pc_mid"),
    ("1.4 变量—代码规范", "https://media.wanmen.org/395b0788-7725-480e-a4e8-a41a5f8d4198_pc_mid"),
    ("1.5 变量类型—数值类型", "https://media.wanmen.org/a4fecb4e-5fbf-49c4-bdf9-f68114d99fa1_pc_mid"),
    ("1.6 变量类型—bool类型", "https://media.wanmen.org/c89c7a27-6979-4c9f-9e4b-12fb116196a9_pc_mid"),
    ("1.7 变量类型—字符串类型（一）", "https://media.wanmen.org/58bc67f0-0b6f-4eb7-9973-e000fa4a46ad_pc_mid"),
    ("1.8 课间答疑", "https://media.wanmen.org/f92fd0b6-74c5-4c4a-9a7b-b1b8e1b3957d_pc_mid"),
    ("1.9 变量类型—字符串类型（二）", "https://media.wanmen.org/e704ea58-cb41-492c-be52-8a79c0e15d6e_pc_mid"),
    ("1.10 变量类型—字符串类型（三）", "https://media.wanmen.org/d861796e-d408-419d-a03c-351f8b234057_pc_mid"),
    ("1.11 变量类型—列表类型（一）", "https://media.wanmen.org/abaafebd-51ce-4285-9871-a8a21afd9055_pc_mid"),
    ("1.12 变量类型—列表类型（二）", "https://media.wanmen.org/c39d599e-e1bc-4719-b02e-0f639b92a510_pc_mid"),
    ("1.13 变量类型—列表类型（三）", "https://media.wanmen.org/56829652-6dee-4620-9a67-158415ef6c13_pc_mid"),
    ("1.14 变量类型—元组类型、字典类型（一）", "https://media.wanmen.org/cf11bcfc-f0a2-4b24-8de6-01e77b5e06b7_pc_mid"),
    ("1.15 变量类型—字典类型（二）", "https://media.wanmen.org/01406387-1d26-4803-9167-4525a2b5c70c_pc_mid"),
]}

p2 = {'name': "第2讲 Python基础课程（下）", 'url_info': [
    ("2.1 条件判断（一）", "https://media.wanmen.org/61d00f67-f811-42bc-8ceb-f8cc8685d6aa_pc_mid"),
    ("2.2 条件判断（二）", "https://media.wanmen.org/1aea459f-71dc-4b10-a07c-cab0d44f1eb0_pc_mid"),
    ("2.3 循环（一）", "https://media.wanmen.org/3701d5b1-0a7e-4f6a-bb83-ca541b5baa1c_pc_mid"),
    ("2.4 循环（二）", "https://media.wanmen.org/bb5e9172-0e63-431f-a4d6-33b4a5789e62_pc_mid"),
    ("2.5 课间答疑", "https://media.wanmen.org/f0aedfdc-b073-47d7-a4db-1d2992e3c6ee_pc_mid"),
    ("2.6 循环（三）", "https://media.wanmen.org/dd5364ab-02ec-4a54-b668-82df258eac1d_pc_mid"),
    ("2.7 循环（四）", "https://media.wanmen.org/79f8728d-91dc-4089-add5-fe7a1f265ac7_pc_mid"),
    ("2.8 函数（一）", "https://media.wanmen.org/40c4f0db-6c22-484e-a2df-3a8a9e1e3c90_pc_mid"),
    ("2.9 函数（二）", "https://media.wanmen.org/af1d2172-cd60-44cc-a6e3-8e6708764f88_pc_mid"),
    ("2.10 函数（三）", "https://media.wanmen.org/00ed0721-7fc0-4200-9f5a-ba190e07f92a_pc_mid"),
    ("2.11 函数（四）", "https://media.wanmen.org/a5e5268d-4af6-428e-a32a-94e8e3bfef06_pc_mid"),
    ("2.12 类（一）", "https://media.wanmen.org/e4f27c34-33f5-4021-82bd-0b1894ee78df_pc_mid"),
    ("2.13 类（二）", "https://media.wanmen.org/98b1d584-7b85-4279-8d31-4e7ec64abe43_pc_mid"),
    ("2.14 类（三）", "https://media.wanmen.org/b74cddbc-b942-485b-a59a-0c4cc98d5a4f_pc_mid"),
]}

p3 = {'name': "第3讲 Python操作数据库、 Python爬虫", 'url_info': [
    ("3.1 课程介绍", "https://media.wanmen.org/cb470ab8-f0d1-4bbf-b04d-ee3fc3f98ba4_pc_mid"),
    ("3.2 认识关系型数据库（一）", "https://media.wanmen.org/b3d97829-b3c5-4363-8eac-079e517dafc6_pc_mid"),
    ("3.3 认识关系型数据库（二）", "https://media.wanmen.org/6f3855f8-0bd9-4833-895f-be05c0fef216_pc_mid"),
    ("3.4 MySQL数据库与Excel的不同", "https://media.wanmen.org/0d68f68e-5235-49f3-b46a-367b25411164_pc_mid"),
    ("3.5 命令行操作数据库（一）", "https://media.wanmen.org/923fe434-9486-49e0-b92e-4bf9a55bd7f3_pc_mid"),
    ("3.6 命令行操作数据库（二）", "https://media.wanmen.org/44de7a2f-66b8-4992-bd00-a3f5b434da9f_pc_mid"),
    ("3.7 命令行操作数据库（三）", "https://media.wanmen.org/e4ed347d-eae1-4498-890d-70eb4f31e220_pc_mid"),
    ("3.8 命令行操作数据库（四）", "https://media.wanmen.org/adfd5ef7-0a09-41af-b4d0-ef268f3af2b2_pc_mid"),
    ("3.9 Python操作数据库（一）", "https://media.wanmen.org/7182b4e1-edf5-40e8-8e59-989b764bf5e0_pc_mid"),
    ("3.10 Python操作数据库（二）", "https://media.wanmen.org/c143b8d4-7874-4f05-a008-ba6d83dc946a_pc_mid"),
    ("3.11 Python操作数据库（三）", "https://media.wanmen.org/139692a3-3bc4-4d04-93fc-824c8e8ab2af_pc_mid"),
    ("3.12 Python操作数据库（四）", "https://media.wanmen.org/464c52f9-06a0-46c8-b6b6-8da741cbcd0f_pc_mid"),
    ("3.13 Python爬虫（一）", "https://media.wanmen.org/3f6c5e01-6901-4cd4-9e34-3c7cc049b3aa_pc_mid"),
    ("3.14 Python爬虫（二）", "https://media.wanmen.org/803614cc-c244-4474-b0c8-ccc69ef3308f_pc_mid"),
    ("3.15 Python爬虫（三）", "https://media.wanmen.org/df5cb554-61a3-48d8-b774-34eb99e6dd3a_pc_mid"),
    ("3.16 Python爬虫（四）", "https://media.wanmen.org/9be623e9-1097-46c8-b780-7a1d61b49655_pc_mid"),
    ("3.17 Python爬虫（五）", "https://media.wanmen.org/3821edcc-efd4-42b8-9dbf-4af3c99c36d0_pc_mid"),
]}

p4 = {'name': "第4讲 Python进阶（上）", 'url_info': [
    ("4.1 NumPy基本操作（一）", "https://media.wanmen.org/7e8bd81e-92a7-4dca-b286-59a38ed4bfc4_pc_mid"),
    ("4.2 NumPy基本操作（二）", "https://media.wanmen.org/b8f2111f-13aa-4216-87a9-56106acdd680_pc_mid"),
    ("4.3 NumPy基本操作（三）", "https://media.wanmen.org/c414170d-c891-4cd0-9ee2-bd8a4dc40643_pc_mid"),
    ("4.4 NumPy基本操作（四）", "https://media.wanmen.org/029fe869-e5ae-4299-b521-c2220f79fcfe_pc_mid"),
    ("4.5 NumPy基本操作（五）", "https://media.wanmen.org/b343178e-5123-4fd7-9c5c-c7c55ff5fbb9_pc_mid"),
    ("4.6 NumPy基本操作（六）", "https://media.wanmen.org/e22725ae-d3c5-4ee9-8e2d-f4bf0e81efdb_pc_mid"),
    ("4.7 Pandas基本操作（一）", "https://media.wanmen.org/af0ee307-6c59-4ba5-be17-d8c93be77a15_pc_mid"),
    ("4.8 Pandas基本操作（二）", "https://media.wanmen.org/96cdea2d-6e8c-41fc-9014-efa01f0b4b83_pc_mid"),
    ("4.9 Pandas基本操作（三）", "https://media.wanmen.org/29ef2104-4906-4a32-9635-cb2ef56d0492_pc_mid"),
    ("4.10 Pandas基本操作（四）", "https://media.wanmen.org/c617a587-02b1-4d27-be05-5d8fb3e466b3_pc_mid"),
    ("4.11 Pandas绘图（一）", "https://media.wanmen.org/945f0d83-3687-4c6d-b2a0-36c2d5678b4d_pc_mid"),
    ("4.12 Pandas绘图（二）", "https://media.wanmen.org/03a1a2fa-650b-4a67-9ed4-67fe58447f32_pc_mid"),
    ("4.13 Pandas绘图（三）", "https://media.wanmen.org/4780d2fc-4741-404e-b00b-b94ae122d4d4_pc_mid"),
    ("4.14 Pandas绘图（四）", "https://media.wanmen.org/5ba4f433-390e-49d3-a11d-e1fcf79c963d_pc_mid"),
]}

p5 = {'name': "第5讲 Python进阶（下）", 'url_info': [
    ("5.1 泰坦尼克数据处理与分析（一）", "https://media.wanmen.org/1b49208d-e9e3-4fee-9819-449e35695a13_pc_mid"),
    ("5.2 泰坦尼克数据处理与分析（二）", "https://media.wanmen.org/790a166e-acb4-426b-b2ff-ea7953389374_pc_mid"),
    ("5.3 泰坦尼克数据处理与分析（三）", "https://media.wanmen.org/bdfd3141-6065-43a9-af5c-c57c40131c68_pc_mid"),
    ("5.4 泰坦尼克数据处理与分析（四）", "https://media.wanmen.org/f62dde1e-5127-4661-9330-5fe431602551_pc_mid"),
    ("5.5 泰坦尼克数据处理与分析（五）", "https://media.wanmen.org/ea93c930-03b1-48d1-b10b-226e5f1a3fd4_pc_mid"),
    ("5.6 泰坦尼克数据处理与分析（六）", "https://media.wanmen.org/fe1cdc77-7db7-4e4b-bcdb-fd386fc3ab7d_pc_mid"),
    ("5.7 泰坦尼克数据处理与分析（七）", "https://media.wanmen.org/b3e9e7e4-ffea-416d-aa92-fcb3a8a4eba1_pc_mid"),
    ("5.8 泰坦尼克数据处理与分析（八）", "https://media.wanmen.org/4a7417f9-6f20-48d4-af39-ddc4858bf6bd_pc_mid"),
    ("5.9 泰坦尼克数据处理与分析（九）", "https://media.wanmen.org/a9591fb7-16d7-41ca-9718-691da46fb4b5_pc_mid"),
]}

parts = [p1, p2, p3, p4, p5]
URLS = [(part.get('name'), item[0], item[1]) for part in parts for item in part.get('url_info')]

if __name__ == '__main__':
    from utils import check_url
    starts = 'https://media.wanmen.org/'
    ends = '_pc_mid'
    check_url.check([i[2] for i in URLS], starts, ends)
    print("视频数量:", len(URLS))

